import request from "@/utils/request"

// 新增检查表
export function postWarehouseAdd(data) {
  return request({
    url: "/warehouse/add",
    method: "post",
    data
  })
}

export function postWarehouseUpdate(data) {
  return request({
    url: "/warehouse/update",
    method: "put",
    data
  })
}

export function getWarehouseList(data) {
  return request({
    url: "/warehouse/list",
    method: "post",
    data
  })
}

export function postWarehouseDel(data) {
  return request({
    url: "/warehouse/delete",
    method: "delete",
    data
  })
}

export function getGoodList(data) {
  return request({
    url: "/warehouse/storeList",
    method: "post",
    data
  })
}

export function getDepartList(data) {
  return request({
    url: "/unit/list",
    method: "post",
    data
  })
}

export function setAdmins(data) {
  return request({
    url: "/warehouse/setAdmins",
    method: "post",
    data
  })
}

export function getAdmins(data) {
  return request({
    url: "/warehouse/getAdmins",
    method: "post",
    data
  })
}

export function getWarehouseStoreList(data) {
  return request({
    url: "/inBound/getWarehouseStoreList",
    method: "post",
    data
  })
}
export function manWithWarehouse(data) {
  return request({
    url: "/warehouse/manWithWarehouse",
    method: "post",
    data
  })
}
